Method and apparatus for three-dimensional optical scanning of interior surfaces

ABSTRACT

The invention concerns the three-dimensional scanning of interior surfaces or cavities of limited dimensions or with restricted accessibility by providing a probe-shaped non-contact adpated to perform a scan 360° around the axis of the probe and a method for scanning. The invention furthermore relates to the creation of high precision three-dimensional replicas of real objects using 3-D scan data obtainable with the scanner according to the invention. Furthermore, the invention relates to a specific embodiment for scanning the human ear and ear canal.

1. TECHNICAL FIELD

[0001] The invention relates to the creation of high precision three-dimensional replicas of real objects. The invention specifically concerns the three-dimensional scanning of interior surfaces or cavities of limited dimensions or with restricted accessibility. Furthermore, the invention relates to a specific embodiment for scanning the human ear and ear canal.

2. PRIOR ART

[0002] Systems for three-dimensional optical scanning are well known in the prior art. They typically comprise one or more light sources projecting a structured light pattern on the object to be scanned, one or more cameras and data processing equipment to convert the recorded image co-ordinates to three dimensional co-ordinates using state of the art software. Usually, only a part of the object is scanned in a single scan. To create a full scan the object, camera and light source need to be move relative to each other.

[0003] Precision is of utmost importance in many applications, e.g. when the scan data is used to model an object, which must fit precisely into another part. Such applications are e.g. devices for the ear canal such as hearing aids, dental implants and other prostheses for the body. For hearing aid shells sub-millimetre precision is required or the shell will cause irritation, acoustic feedback and possibly infection to the epidermis of the ear canal. For dental implants the precision requirement is even greater, since a human being can detect differences less than {fraction (1/10)} of a millimetre when biting. Therefore systematic or random errors in the calibration and/or performance of scanners for these uses can be fatal. This has hitherto limited the use of scanning in the modelling of such implants and shells.

[0004] WO 96/10204 (Fright et al.) discloses a handheld 3-D scanner, which uses a position sensor to determine the relative position of the scanner with respect to the object to be scanned. The disclosed scanner is not adapted to scan interior surfaces due to its size and due to the fact that the light sources point towards the centre of in which the object to be scanned must be placed. This scanner thus suffers from the same occlusion effects as non-portable scanners. The patent application is the basis for the Polhemus FastTrack handheld scanner.

[0005] U.S. Pat. No. 6,263,234 (Leica Microsystems Heidelberg GmbH) discloses a confocal surface-measuring device, which is adapted to emit a ray of light and partly move this ray in relation to the axis of the device to perform a scan of an area below the device. The invention dos not disclose how the light reflected from the object is directed to the detector, which makes it very doubtful whether the construction is able to work in practice. However the scanner only rotates the light deflecting means and not the construction related to the detector, which only makes it able to scan a very limited part of the circumference.

[0006] U.S. Pat. No. 5,895,927 (USA Secretary of the Air Force) discloses a non-contact interior cross-section profiler for measuring internal dimensions of pipes, tubes etc. The profiler generates a disc of light using a cone shaped mirror which is reflected from the interior surface of the pipes, tubes etc. to a camera. It is however doubtful whether the profiler can measure the dimensions precisely, since small errors in the orientation of the profiler along the axis of the pipe or tube will cause the disc to be distorted. The profiler is only meant to measure internal dimensions and not to produce 3-D real world co-ordinates.

[0007] U.S. Pat. No. 5,784,098 (Olympus Optical Co., Ltd.) discloses an endoscope which is capable of performing 3D scanning of small areas in the interior of a human being. The scanner works by projecting a pattern consisting of several sheets of light from the tip of the endoscope onto the surface in front of the tip. 2-D images are taken by a camera connected via light guides to the tip of the endoscope. Due to this construction, the angle at which light is reflected from the surface towards the camera is very small and not optimal for precision scanning. Furthermore, the scanner is only adapted to map small areas. Additionally the design is very likely to give very distorted images, which makes high precision scanning infeasible.

[0008] WO 01/22030 (Mycrona Gesellschaft für Innovative Messtechnik GmbH) discloses a device for measurement of poorly accessible hollows such as the inside of a bore. The device is capable of measuring the internal diameter of the hollow. However the scanner is only able of perform scans at maximal 180° of the circumference, since it only applies one or two static coplanar mirrors.

[0009] U.S. Pat. No. 5,056,204 (Ascom Audiosys AG) concerns a method for milling of hearing aids whereby the internal contours of the ear canal are allegedly recorded by a laser apparatus located outside the ear of the patient. The disclosure contains no means to direct the laser light into the ear canal. Due to occlusion effects only part of the ear canal can be scanned according to the disclosed method. Furthermore, the disclosure fails to take regard to the fact that the individual is likely to move while the images are recorded.

[0010] WO 00/34739 (Fagan et al.) concerns a method for manufacturing hearing aid shells involving the use of a specially adapted ultrasonic scanner head to safely measure the contours of the ear canal without contact with the surface being measured. The recording of the data in the ear canal is made possible by filling the canal with a liquid and inserting the ultrasonic scanner. The scan data are processed by a computer and the data are used with a rapid prototyping set-up such as stereo lithography, selective laser sintering, laminate object modelling, inkjet modelling, fused depositing modelling, 3DP or any other system that produces real models from computer mathematical models to manufacture the hearing aid shell. One disadvantage of the system is the need for filling the patient's ear completely with water. This can be extremely annoying to patients and they may experience symptoms of nausea during and after such treatment. Furthermore it is doubtful whether it is really possible to determine the three dimensional co-ordinates of the surface of the ear canal with the required precision using an ultra sonic scanner. An ultrasonic sound signal emitted does not travel in just one direction in the liquid in the ear canal. As the ultrasonic waves are reflected by the surface of the ear canal they travel in many different directions. Thus the transducers of the ultrasonic scanner will detect a number of signals of varying size with different delays after the emission of one sound signal. It must be extremely difficult for the underlying software to determine which of the signals to use in the determination of the co-ordinates. The disclosure provides no information on how to perform this operation.

[0011] EP 0 516 808 (Tøpholm & Westermann Aps) concerns a method for computer assisted manufacture of otoplastic individually fitted to the contours of the ear canal.

[0012] According to the described method a digital representation of the internal contours of the ear canal is used for milling or 3D printing of a hearing aid shell. A computer is used to optimise the location of the components of the hearing aid and the thickness of the walls of the shell. The disclosure does not suggest the solution of scanning the internal contours of the ear canal using an optical scanner.

3. SUMMARY OF THE INVENTION

[0013] According to a first aspect the invention relates to a scanner for three-dimensional scanning of interior surfaces comprising

[0014] at least one light source adapted to create and project structured light producing a pattern on the interior surface of an object,

[0015] at least one camera, adapted to record 2-D images of the pattern,

[0016] data processing means adapted to convert 2-D image information into 3-D real world co-ordinates,

[0017] the point of emission of light as well as the point of accumulation of reflected light for the camera being located on a probe having an axis,

[0018] the at least one light source and the at least one camera being adapted to perform a scan 360° around the axis, and

[0019] the probe being adapted to be entered into a cavity.

[0020] The probe of the scanner may be either rigid of flexible

[0021] Compared to prior art scanners this scanner has the advantage that it is able to cover the whole circumference without moving the scanner thus being able to scan the whole inner surface of an object. With this layout it is possible to scan interior surfaces such as the ear canal, tubes, pipes and bores with non-contact scanning and obtain high precision scan data of the whole interior surface of the object.

[0022] Furthermore, the dimensions of the scanner can be very small thus allowing scanning and 3D mapping of interior surfaces with small cross section, which are inaccessible to prior art scanners.

[0023] According to an especially preferred embodiment the scanner is equipped with a position sensor, which allows the relative position and orientation of the scanner and the object to be determined for successive scans. This greatly facilitates the combination of data from successive scans and makes it possible to combine these with much higher precision irrespective of the position and orientation of the scanner during scanning.

[0024] According to another aspect the invention relates to the use of a scanner according to the invention. Among the preferred uses are scanning of body cavities, scanning of industrial objects, scanning in connection with archaeology and scanning in connection with industrial design.

[0025] The compact layout of the scanner allows for easy scanning of interior surfaces of objects of extremely small size. The ease of operation of the scanners according to the invention means that practitioners without experience in scanning can easily perform the scanning operations, which is required especially in the case of scanning of body cavities and scanning for archaeological purposes.

[0026] According to a further aspect the invention relates to a method for scanning interior surfaces comprising the steps of

[0027] i) entering a probe shaped scanner having an axis into a cavity,

[0028] ii) creating and projecting structured light from a first point on the probe producing a pattern on an interior surface of an object, and at a second point of the probe, recording 2D images of the pattern reflected from the interior surface, thereby performing a scan 360° around the axis of the probe,

[0029] iii) determining 2D co-ordinates of the images of the pattern,

[0030] iv) combining a series of images to obtain 3D real world co-ordinates of the interior surface.

[0031] The method allows for easy scanning of interior surfaces of objects which cannot be scanned with high precision using prior art scanning methods.

[0032] Preferably the method is carried out with a scanner according to the invention.

[0033] According to a preferred embodiment the method for scanning further comprises calibration of the scanner by:

[0034] i) scanning a three dimensional calibration object having at least one plane of symmetry and whereby at least part of at least one 3D object feature curve of each symmetric part is a continuous curve,

[0035] ii) determining image feature co-ordinates being representations of at least one pair of 3D object feature curves for each of a discrete number of values of an angle or rotation and/or translation, a pair consisting of one 3D object feature curve in each symmetric part of the calibration object,

[0036] iii) changing the calibration parameters to fit the calibration object.

[0037] According to a still further aspect the invention relates to a method for 3D modelling and production comprising obtaining 3D real world co-ordinates of an interior surface of a cavity provided using the method according to the invention, and creating a piece adapted to fit into the cavity.

[0038] Thereby, the steps for manufacturing the piece are reduced to the absolute minimum and an especially perfect fit of the piece can be obtained. The interior surface may be scanned a number of times, such as under different conditions affecting the geometry of the interior surface. Thereby the variations in the dimensions of the interior surface can be recorded. This is very cumbersome using the prior art techniques.

[0039] Once the data are recorded the piece may be manufactured using any automatic manufacturing technique such as milling. More preferably the modelling technique comprises 3-dimensional printing, stereo lithography, selective laser sintering, laminated object modelling, inkjet modelling, fused deposition modelling, nano-printing. A common feature of these techniques is that only the required amount of material is used and that it is easier to produce complex models such as devices for the ear and/or ear canal and/or dental implants.

[0040] The devices for the ear may comprise a hearing aid, a mobile phone, a loud speaker, a microphone, communication devices, a tinnitus masker or a tinnitus masking device such as the ones described in U.S. Pat. No. 5,325,872 and WO 91/17638. FIG. 13 shows a scan of the interior surface of an ear and an ear canal 1301.

4. BRIEF DESCRIPTION OF THE DRAWINGS

[0041]FIG. 1 illustrates an embodiment of the interior surface scanner according to the invention.

[0042]FIG. 2 shows a cross section of an embodiment of the interior surface scanner according to the invention.

[0043]FIG. 3 illustrates another embodiment of the interior surface scanner with a mirror in front of the camera.

[0044]FIG. 4 shows a cross section of another embodiment of the interior surface scanner with a mirror in front of the camera.

[0045]FIG. 5 shows how a structured light pattern is projected onto the interior surface. In this case the pattern is a single cone. This pattern is then reflected from the surface into the camera.

[0046]FIG. 6 illustrates an example of the use of mirrors and/or prisms. A structured light pattern is reflected in a mirror before being projected onto the interior surface. In this case the pattern is a single cone. This pattern is then reflected from the surface into a mirror that reflects the pattern into the camera.

[0047]FIG. 7 shows a cross section of a model of the interior surface scanner according to the invention. Note that the camera has been moved out of the probe and a lens system is used to guide the image to the camera.

[0048]FIG. 8 shows a cross section of a model of the interior surface scanner according to the invention. Note that the camera has been moved out of the probe and optical fibres are used to guide the image to the camera.

[0049]FIG. 9 illustrates different positions sensors, which can be applied within the invention.

[0050]FIG. 10 shows an embodiment of a hollow calibration object used for calibration of the camera and light sources. Note the symmetric 3D object feature curves on the object, which are utilised in the calibration.

[0051]FIG. 11 shows a schematic sketch of a scanner according to the invention adapted for scanning of the ear and ear canal.

[0052]FIG. 12 shows a schematic sketch of another embodiment of the scanner for the ear and ear canal.

[0053]FIG. 13 shows a scan of an ear and an ear canal seen from two different views.

[0054]FIG. 14 illustrates an embodiment of the scanner being able to scan the surface lying behind the end of the probe.

5. DETAILED DESCRIPTION OF THE INVENTION

[0055]FIG. 1 to FIG. 4 illustrate two preferred embodiments of the invention. The first part 101 of the scanner is the probe, which is inserted into the cavity. The second part 102 is a handle. The scanner in FIG. 1 and FIG. 2 comprises a cover 103, a scan button 104, a disposable cover 105, light guides 201, a light source 202, a position sensor 203, optics and mirrors and/or prisms 204, a camera 205 and a protector/collision detector 206. A rotating mirror and/or prism with a micro motor 301 is also added to the component list in the embodiment shown in FIG. 3 and FIG. 4. As illustrated in FIG. 5, the scanner works by projecting a structured light pattern 501 onto the interior surface of the object 502. The camera 503 acquires images of the reflection 504 of the light pattern from the surface. By locating the light pattern in the images, the corresponding 3D surface positions can be reconstructed applying well-known projective geometry. The scanner only scans limited parts of the surface at each position and usually it has to be moved around handheld or automatically to scan the full interior surface.

[0056] 5.1 Light Pattern Generation

[0057] The light is generated by one or more light sources such as lasers, variable output-powered laser, laser emitting diodes (LED), halogen spots or other spotlights and travels through the light guides such as optical fibres. In some applications it might be relevant to use monochromatic, coherent or polarised light. At the end of the light guides optics and mirrors and/or prisms may create the desired pattern. Examples of optics are filters, lenses or prisms. An alternative to the use of light guides is to place the light source near the tip of the scanner. Note that the projection of light, even lasers, onto the surface does not damage the surface.

[0058] The light sources for some applications preferably are as small as possible to minimise the dimensions of the scanner. It is thus contemplated that the light source may have a cross section perpendicular to the direction of emitted light of less than 5 mm, preferably less than 4 mm, for example less than 3 mm, such as less than 2 mm, for example less than 1 mm, such as less than 0.5 mm, for example less than 0.25 mm.

[0059] The scanner may work with only one light source, but for many purposes it is advantageous to have several such as at least 2 light sources, such as at least 3 light sources, for example at least 4 light sources, such as at least 5 light sources, such as at least 6 light sources, for example at least 7 light sources, such as at least 8 light sources, for example at least 10 light sources, such as at least 12 light sources, for example at least 16 light sources, such as at least 20 light sources.

[0060] Depending on the desired pattern one, two, three or more optics and one, two, three, four or more mirror and/or prisms are required. The structured light pattern may be a number of rays forming a grid of spots on the surface consisting of one, two, three, four or more rows of points, one, two, three or more cones of light forming contours on the surface, one, two, three of more planes of light forming contours on the surface, one, two, three of more thick planes of light forming thick contours on the surface, a number of rectangular shaped rays forming a distorted checker board pattern on the surface or more complex shapes.

[0061] Thus, when projecting a pattern of rays, pattern may comprise at least 10 rays, such as at least 25 rays, for example at least 100 rays, such as at least 1000 rays, for example at least 10,000 rays, such as at least 100,000 rays, for example at least 1,000,000 rays.

[0062]FIG. 5 illustrates how a single light cone 501 is projected onto the object surface 502 using optics 503. FIG. 6 shows how the emission angle of the light cone can be increased significantly by reflecting the emitted light 601 into a cone mirror and/or prism 602 after the optics 603. Any type of mirrors such as coplanar mirrors and cone mirrors can be used to reflect the light. Applying mirrors and/or prisms make it possible to change the emission direction invariant of the orientation of the light guides. The light pattern can also be moved over the surface without moving the actual scanner by rotating and/or tilting the mirrors and/or prisms. The rotation and/or tilting of the mirrors and/or prisms may be carried out by a motor.

[0063] Preferably the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe are chosen to give an angle between incident light on the object and light reflected from the object of approximately 20-30°. An example of this embodiment is illustrated in FIG. 6.

[0064] Occlusion effects represent a problem for some types of scanning of interior surfaces. Some of these can be overcome by selecting a direction of emission and recording of light with respect to the axis of the scanner, which ensures that light is projected on and recorded from all parts of the interior surfaces. One embodiment of the scanner is designed, wherein the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe are chosen to give a scan of the surface lying ahead of the end of the probe. An example of such a scanner is shown in FIG. 5. Alternatively the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe may be chosen to give a scan of the surface lying approximately around the end of the probe. An example of this is shown in FIG. 6. Alternatively, the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe may be chosen to give a scan of the surface lying behind the end of the probe. FIG. 14 illustrates an example of such a scanner. These alternative embodiments may be obtained with one scanner by tilting mirrors and/or prisms.

[0065] 5.2 Light Source Intensity Adjustment

[0066] The light source intensities are preferably varied depending on the surface and colour of the object to be scanned. Preferably the intensity should be determined automatically using automatic light source intensity calibration.

[0067] The intensity calibration may be performed by inserting the scanner into the object and calculate a number of histograms from the acquired images. First a histogram is calculated with the light source turned off. A second histogram is the calculated when the light source is turned on with an arbitrary intensity. The first histogram is then subtracted from the second to remove the background intensity. The intensity is then adjusted until the requested quantile corresponds to a predefined intensity. The background could also be removed by subtracting the image corresponding to the light source turned off from the image with light. The histogram used to determine the intensity could then be calculated from this difference image.

[0068] 5.3 Image Acquisition

[0069] The images are acquired by the one or more cameras. Preferably the cameras comprise a lens and a sensor array such as a CCD or CMOS chip. Usually the camera also comprises a filter placed in front of the sensor array. The effect of the filter is that only light with approximately the desired wavelength passes the filter. This makes it feasible to separate different light sources in the scanner and remove most of the background light. Alternatively, the camera may be colour sensitive.

[0070] The scanner may comprise just one camera or comprise several such as at least 2 cameras, such as at least 3 cameras, for example at least 4 cameras, such as at least 6 cameras, for example at least 7 cameras, such as at least 8 cameras, for example at least 10 cameras, such as at least 12 cameras, for example at least 16 cameras, such as at least 20 cameras.

[0071] Preferably the cameras are arranged such that reflected light is recorded from different directions covering the 360° around the probe (FIGS. 11 and 12, right side).

[0072] Preferably the camera part of the scanner is as small as possible. The size of cameras is reduced almost every year, and it is estimated that the lower limit for camera size and pixel size have not been reached at all yet. Irrespective of the future development within this area, camera smaller than the cameras presently available will be suitable for use in the present invention. Therefor the light detecting component of the camera may have a cross section in a direction perpendicular to the direction of incident light of less than 10 mm, such as less than 9 mm, for example less than 8 mm, such as less than 7 mm, for example less than 6 mm, such as less than 5 mm, for example less than 4 mm, such as less than 3 mm, for example less than 1 mm, such as less than 0.5 mm, for example less than 0.25 mm, such as less than 0.1 mm, for example less than 0.01 mm.

[0073] The number of pixels of the camera is a question of the size of the camera (depending on the size of the pixels), the computing power used for processing the results of the scans and the cost of the camera. No upper limit for the number of pixels can be set, since precision is increased whenever the number of pixels is increased. Accordingly, the camera may comprise an array of at least 125*125 pixels, more preferably at least 250*250 pixels, more preferably more than 500*500 pixels, more preferably more than 1000*1000 pixels, such as more than 2000*2000 pixels, for example more than 4000*4000 pixels, such as more than 8000*8000 pixels, for example more than 10,000*10,000 pixels, such as more than 25,000*25,000 pixels, for example more than 50,000*50,000 pixels, such as more than 100,000*100,000 pixels, for example more than 250,000*250,000 pixels, such as more than 500,000*500,000 pixels, for example more than 1,000,000*1,000,000 pixels. Similarly, the pixel size may be the smallest available on the market, for example wherein a cross section of a pixel is less than 100 μm, such as less than 50 μm, for example less than 25 μm, such as less than 20 μm, for example less than 15 μm, such as less than 10 μm, for example less than 7.5 μm, such as less than 5 μm, for example less than 2.5 μm, such as less than 2 μm, for example less than 1.5 μm, such as less than 1 μm, for example less than 0.5μ, such as less than 0.25 μm, for example less than 0.1 μm, such as less than 0.01 μm.

[0074] The light pattern may be reflected from the surface directly into the camera or into one or more light reflecting means such as mirrors or prisms before ending up in the camera. In the embodiment of the scanner in FIG. 1 no mirrors are applied, since the scanner only needs to “look” forward with respect to the camera, i.e. the direction of the view is always parallel with the optical axis of the camera. FIG. 5 illustrates the simple emission of the light pattern 501 and its reflections 504 from the object surface 502 into the camera 505 without the use of mirrors. FIG. 5 is a simplified illustration of the principle used in the scanner in FIG. 1.

[0075] Applying one or more mirrors and/or prisms for reflecting the light into the camera gives full freedom to select the direction of the view invariant of the orientation of the camera. FIG. 6 illustrates how the emitted light pattern 601 is reflected using a cone mirror and/or prism 602 before it hits the object surface 605. The reflected light 604 is likewise reflected into a mirror and/or prism 606 before entering the camera 607. FIG. 6 is a simplified illustration of the principle used in the scanner in FIG. 3. Static mirrors such as coplanar or cone mirrors can be applied directly in the invention. Static mirrors have the advantage of being simple and mechanically stable.

[0076] In the embodiment of the scanner shown in FIG. 3 the mirror and/or prism in front of the camera is coplanar, circular and able to rotate. The advantage of a rotating mirror and/or prism compared to a static mirror and/or prism, such as a cone mirror and/or prism, is that the image resolution and the field of view of the camera are significantly increased. Indeed resolution and field of view are seriously limited due to the small dimensions of the scanner, which directly affect the accuracy and flexibility. Tilting the mirror and/or prism further increases the accuracy and flexibility. In practice, the same mirror and/or prism can be used to generate the light pattern and reflecting the light into the camera. However, applying different mirrors and/or prisms for light and cameras, as presented in FIG. 3, increase the flexibility of the scanner especially with respect to direction of view, depth of field and point reconstruction quality.

[0077] In the case of very small dimensions of the cavity and/or high requirements for accuracy it is infeasible to place the camera on the head of the scanner. The problem is solved by moving the cameras out of the probe. The image/light is then directed into the cameras by the use of light guides such as a lens system or optical fibres. An embodiment of the invention where a lens system 701 and optical fibres 801 are used as light guides are illustrated in FIG. 7 and FIG. 8, respectively. The lens system might be similar to the lens systems used in periscopes and endoscopes. At the moment the lens system is superior to optical fibres with respect to smallest dimensions and image quality. The disadvantage of the lens system is that it requires the probe be rigid, whereas the optical fibres are fully flexible, i.e. the probe can be flexible.

[0078] 5.4 Position Sensing

[0079] The objective of the position sensor is to determine the relative position and orientation of the probe head with respect to the object to be scanned. Knowing this position is extremely advantageous in combining the individual scans when the scanner or object is moved. Errors in the position measures will directly affect the quality of the scan. In the case of non-fixed objects such as the ear canal of humans are scanned, it is extremely advantageous to measure the position with respect to the object, e.g. the ear canal, and not to a fixed coordinate system, since the object might move during the scanning.

[0080] Recall that the position sensor is only required to combine the individual scans. The position sensor can be rendered superfluous by a registration of the individual scans. The output of the registration is the relative position of the scans. Knowing the relative positions of the scans make it straightforward to combine the scans. For the registration to be successful the interior surface needs to contain a proper number of distinct features, which is not always the case.

[0081] Preferably the position sensor should be a magnetic sensor as shown in FIG. 9, where the receiver 902 usually is in the scanner and the transmitter 903 is secured to the object 901, e.g. the head of a human. Magnetic sensors have the advantage of not suffering for occlusion problems. Alternative sensors might be optical or sonic sensors. FIG. 9 illustrates an optical sensor where markers 904 are placed on the object and a sensor 905 on the scanner. Likewise FIG. 9 illustrates a sonic sensor, where an emitter 906 is placed on the object and a detector 907 is placed on the scanner. Both optical and sonic sensors suffer from occlusion problems, but their cost is often lower and the precision superior to those of magnetic sensors. In the case of a fixed object or an object, which can be fixed, a mechanical position sensor becomes attractive. As illustrated in FIG. 9 these sensors usually consist of a number of joints 908 connected by encoders. Many mechanical sensors are highly accurate, but they tend to be bulky or cumbersome to use.

[0082] In general, the position needs to be determined with respect to the head of the scanner. More precisely, the position of the focal point of the camera has to be determined when the camera is placed on the probe head. In the case where light guides are used in front of the camera, the position should correspond to the tip of the guides. With a rigid design of the scanner cover as in FIG. 1 to FIG. 4 the position sensor can be placed anywhere on the scanner, since the relative distance between the scan head and the position sensor is constant. With a flexible design of the probe the position sensor needs to be placed on the scan head, e.g. at the front as on the scanner in FIG. 11 and FIG. 12.

[0083] 5.5 Cover

[0084] In the design of the scanner show in FIG. 1 and FIG. 3 only the probe 101 is supposed to move into the cavity. The main objective of the design has been to minimise the width of this part, since it determines the minimal size of the cavity, which can be scanned. In general the width of the probe can be varied freely down to approximately 0.1 mm, e.g. the width can be 30, 20, 15, 10, 8, 6, 5, 4, 3, 2, 1 or 0.1 mm. However the final design is a trade-off between size, accuracy and mechanical stability. In general the application determines the desirable design.

[0085] In the case of scanning the human ear canal the width of the part is requested to be below 4 mm. FIG. 3 shows a scanner designed for scanning ear canals, where the width of the probe is 3.5 mm. The length of the probe can also be varied freely down to approximately 5 mm, e.g. the length can be 20, 35, 50, 100, 200, 300 or 500 mm. The length of the probe shown in FIG. 1 and FIG. 3 is 55 mm.

[0086] The rest of the scanner's cover is basically a handle. For optimal handling this part should preferably be 10-30 mm width and 100-150 mm long. The dimension can however be varied freely. As in FIG. 1 and FIG. 3 the width of the handle may be extended to make room for the components, e.g. the position sensor. The dimensions of this extension should however be minimised if the objective is to create the smallest and lightest scanner. The width and length of the extension shown in FIG. 1 and FIG. 3 is 40 mm and 30 mm, respectively. Note that larger light sources such as halogen spots may be moved to the extension.

[0087] In another embodiment of the scanner it is possible to rotate the probe 360 degrees around its axis. The advantage of this design compared to only rotating the mirrors and/or prisms as in FIG. 3 is that the motor can be placed in the handle. Likewise another embodiment comprises a linear drive, which is able to translate the probe along its axis. The scanner can also be mounted on a robot, a magnetic position system or another device, which is able to position the scanner with any orientation and position within its workspace.

[0088] The choice of material for the cover depends on the actual application, especially whether the probe needs to be rigid or flexible. Preferably the cover should be produced in stainless steel or from a material selected from a group consisting of alloy, aluminium, a plastic polymer, kevlar®, ceramics or carbon.

[0089] In some application it might be necessary to protect the components such as cameras, mirrors and/or prisms and lenses against dust and other dirt. In practise this is done by inserting a window of transparent material such as glass or a plastic polymer in the holes in front of the relevant components.

[0090] 5.6 Miscellaneous Features

[0091] Other features in the preferred embodiment are a protector/collision detector, a scan button, and a disposable scanner cover. The protector consists of soft material such as rubber, silicone or a plastic polymer and ensures that the tip of the probe and the surface are not damaged in the case of a collision. In the case of scanning an ear canal it is crucial that the scanner does not damage the eardrum. In the case of very fragile surfaces, a collision detector adapted to measure the distance from the tip of the scanner to the bottom of the interior surface is added to the protector. When surfaces are scanned for which the scanner is subject to hygiene requirements, a disposable cover is desirable to minimize the need for cleaning. The disposable cover will usually only cover the probe or parts of it, but can be fit to the specific requirements. The scan button is used to start and stop the scan operation.

[0092] 5.7 Processing

[0093] The acquired images are analysed real-time in a digital signal processor/microprocessor, which is placed in the scanner handle or in a separate processing box. The first step in the analysis of an image is to detect the light pattern in the image using a standard tracking algorithm. When the light pattern is known with sub-pixel precision, the corresponding 3D coordinates can be reconstructed using well-known projective geometry. A precise reconstruction of the 3D coordinates requires a very high quality of the camera and light calibration. The next step is to combine the 3D coordinates from different images acquired at the same or at different positions. The merging is simply performed by combining the individual points sets positioned with respect to their relative position. Finally the points are triangulated using a standard triangulation algorithm to form the final surface of the 3D model. The 3D model may then be transferred over a network to the destination for further use.

[0094] 5.8 Uses of the Scanner

[0095] The scanner according to the invention is especially adapted for scanning interior surfaces, such as body cavities and other interior surfaces with narrow openings, into which light from an external scanner cannot enter due to occlusion effects.

[0096] It is thus envisaged that the scanner is advantageous for scanning body cavities such as the internal surfaces of the ear, nose, mouth, teeth, stomach, lungs, alveoli, throat, rectum, vagina, veins, blood vessels, urinary tract. Scanning of teeth can be used in connection with correction of teeth and manufacture of dental implants. Scanning the blood vessels may be useful in connection with surgery. Scanning the vagina can be used in connection with pregnancy and delivery and also for measuring and modelling an individually adapted diaphragm. FIG. 13 shows a scan of the interior surface of an ear and an ear canal 1301.

[0097] The scanner can also be used for industrial purposes such as for scanning internal surfaces of engines, fuel canals, bore, internal thread, pipes, tubes and containers. In this way the exact dimensions (volume and/or cross section and/or location of features) of the devices can be measured. When using a scanner with a position sensor this can be done more precisely than any of the known scanners. Furthermore, the present scanners are not sensitive to small deviations in the orientation of the axis of the scanner with respect to the axis of the object being scanned.

[0098] Another use is for archaeological purposes such as for scanning internal surfaces of jars, skulls and other archaeological items.

[0099] Furthermore, the scanners are very useful in industrial design especially in connection with computer assisted 3D modelling.

[0100] 5.9 Scanning the Ear

[0101] A possibility according to the invention is to scan the ear canal directly. This can be done by building the components of the scanner into an apparatus, which can be inserted into the ear of the patient. Embodiments of this scanner are shown in FIG. 11. Preferably, the light source, e.g. the laser, and the camera are located outside the ear. The laser light can be carried into the scanner by light guides 201, and similarly, the reflected signals can be carried to a camera by another light guide 801. The scanner also consists of a position sensor 203, which measures the relative position of the scanner with respect to the object. During the scan, the scanner preferably rests on the edge of the ear canal, most preferably in those places where bones are closest to the skin surface. This is in order to obtain the highest stability and is very important, since the scanner itself works with an accuracy less than 0.05 mm. The length of the ear canal can be scanned by moving the scanner in or out and record a series of overlapping images of the ear canal. The scanner may comprise only one laser source and one camera as the one shown in the left of FIG. 11. In that case the scanner has to rotate while the camera records images. Preferably, the scanner comprises multiple laser sources such as four as shown in the scanner in the right part of FIG. 11. The presence of multiple laser sources and cameras removes the need for rotation of the scanner in the ear canal. In the laser scanner disclosed in FIG. 11, the laser source or sources project a ray of laser light on the surface of the ear canal.

[0102] Another type of ear canal laser scanner is shown in FIG. 12. Here the laser light is projected as laser sheets producing a laser contour on the surface of the ear canal. Thereby, more rapid scanning can be performed compared to the above laser scanner. In the scanner shown in the right part of FIG. 12, four laser sheets and four cameras are present. Thereby the laser sheets cover the whole circumference and rotation of the scanner is not required.

[0103] The same types of variation of the ear canal scanner can be used as in other cases of three-dimensional scanners according to this invention. Thus, preferably the scanner comprises at least two cameras, more preferably 4 cameras such as for example 6 cameras. Likewise, there may be several laser sources such as for example 2 lasers creating laser sheets with an offset of 180°, preferably 3 laser sheets with an offset of 120°, or 4 laser sheets with an offset of 90°.

[0104] Prior to scanning, the patient's ear must be rinsed to remove cerumen. In some cases it may also be advantageous to treat the surface of the ear canal if the appearance is too glossy.

[0105] One scan can be performed in less than 1 minute, and it is thus possible to record a number of scans of one ear, and ask the patient to deliberately vary the size of the ear canal by swallowing, yawning, chewing, and drinking. In this way a series of scans of the ear canal can be recorded and the magnitude of the variation of the patient's ear canal can be detected. In the end it is possible to superimpose these scans on one another to create a model, which will fit the patient's ear under all conditions. Such a model is naturally made as a compromise between the different sizes of the ear canal.

[0106] The improved fit of the hearing aid shells according to the present invention compared to prior art hearing aid shells means that the frequent problem of acoustic feedback in hearing aids is minimised. The direct scanning of the ear significantly reduces the production cost of hearing aids, since the impressions used today are rendered superfluous. The removal of the impression removes the handling and mailing cost and cuts down the production time and improves flexibility.

[0107] 5.10 Ear Model

[0108] Currently hearing aids are created in a silicon mould, made with an ear impression.

[0109] It is possible to scan and create very detailed and accurate copies of ear impressions with the developed system as described in co-pending PCT/DK01/ (“Object and method for calibration of a three-dimensional light scanner”, filed by 3-Shape on 24. Aug. 2001).

[0110] Apart from hearing aids, other devices could also be inserted into a shell made to fit the ear canal of an individual. Such devices that could advantageously be incorporated into a shell manufactured according to the disclosed method include mobile phones, communication devices, loud speakers, tinnitus masking devices, or devices recording vibrations in the skull and transforming these into an audio signal.

[0111] Devices that may be incorporated into a shell in the ear also comprise devices related to Man Machine Interface (MMI) products, such as custom made ear microphone/receivers that enable reliable and clear communication even in the noisiest environments, or products related to wireless internet applications.

[0112] Speech not only creates sound waves, it also generates vibrations within the skull of the speaker. These vibrations can be picked up in the ear (they may be picked up other places too, but by far the most convenient method is to do it in the ear). In one piece, a device thus may comprise a microphone to pick up the speech of the person wearing it, and a loudspeaker to transmit the speech of the communication partner. It is important that such devices are made to fit the ear.

[0113] The devices based detection of vibration instead of sound can be used in the noisiest environments, since they only pick up the speech of the wearer and they allow for quiet communication, since the speaker can speak with a low voice when needed. The devices allow for completely hand-free communication.

[0114] Such a device is naturally also devoid of any kind of acoustic feedback if manufactured using the present invention.

[0115] 5.11 Calibration

[0116] The precision of the light sources and cameras is very high today and so is that of the software developed to detect the intersection of the light sheet with the object and convert the two-dimensional data to three-dimensional co-ordinates. Therefore differences in precision and hence improvement of the precision primarily resides in the calibration of the systems. Recall that precision is of utmost importance in many applications.

[0117] To obtain the highest precision both the light pattern and the camera need to be calibrated. Preferably the calibration should be performed using a calibration object with symmetrical 3D object feature curves and the corresponding methods as described below and in co-pending PCT/DK01/ (“Object and method for calibration of a three-dimensional light scanner”, filed by 3-Shape on 24. Aug. 2001). The main advantage of this type of calibration objects is that the light pattern can be calibrated independently of the calibration of the camera. An embodiment of the hollow calibration object used for calibration of the scanner is shown in FIG. 10. Note the symmetric 3D object feature curves 1001 on the calibration object, which are utilised in the calibration.

[0118] Preferably, a light pattern is projected onto the calibration object to produce 2D image feature curves in the acquired images.

[0119] When preferred, the image feature curves may be determined using the Hough transformation, filter search, max intensity, threshold, centre of gravity, derivatives or other procedures.

[0120] The image feature coordinates are found as the intersection between image feature curves. These intersections could be seen in the images as corners or sharp edges of the image feature curves. The image feature co-ordinates may be found as the intersection between the image feature curves such as the intersection between two n^(th) order curves, as the intersection between two first order curves, as the intersection between two second order curves, as the intersection between two third order curves, as the intersection between a fist order curve and a second order curve, as the intersection between a first order curve and a third order curve, or as the intersection between a second order curve and a third order curve or as the intersection between any other possible combination of curves.

[0121] Preferably, the calibration method further comprises plotting of a mathematical combination of image feature points or features derived from these points against the angle of rotation or the translation of the calibration object. By plotting this function and optionally estimating a mathematical function describing the relationship between the function of an image co-ordinate and the angle of rotation or the translation, estimation of the light parameters and angle or rotation and/or translation becomes especially precise. The method may further comprise determination of the mean plane of symmetry in the plot.

[0122] The mean plane of symmetry can be determined by calculating the mean angle of rotation/mean translation for pairs of image feature points having the same value in the mathematical combination. Doing this produces multiple estimates for the encoder offset and light pattern displacement allowing also for the estimate of the laser sheet angle.

[0123] Light pattern calibration may also comprise selecting symmetric points, plotting of the rotation angle and/or the translation for the first point against the difference in the rotation angle and/or the translation between the two symmetric point, deriving mathematical formula for the plotted lines and estimating the light pattern parameters.

[0124] Alternatively, mathematical formulas can be derived for the curves, which appear in some of the plots of the mathematical combination as a function of the angle of rotation or the translation. Given these curves and the corresponding formulas, the encoder offset, the light pattern displacement and the light pattern angle can be estimated.

[0125] Preferably, light pattern co-ordinates of the 3D object feature curves are estimated corresponding to a discrete number of values of angle of rotation and/or translations. These values should preferably cover the whole circumference and/or length of the calibration object.

[0126] 2D co-ordinates of the 3D object feature curves corresponding to a discrete number of values of angle or rotation and/or translation may be calculated from mathematical functions determining the 3D object feature curves. In order to determine the calibration parameters such as camera position, camera orientation, and camera optic parameters, pairs of 2D light pattern co-ordinates are compared to calculated 2D co-ordinates for a discrete number of values of angle or rotation and/or translation. This comparison preferably comprises using the Tsai or the Heikkilä algorithm. The advantage of the Tsai and the Heikkilä algorithm in this context is that it provides rapid and precise estimation of the calibration parameters such as radial lens distortion.

[0127] Alternative methods for calibration comprise direct linear transformation and direct non-linear matrix transformation optionally in combination with an optimisation procedure such as least squares means to minimise the error. In these cases initial calibration parameters may be estimated to facilitate the convergence of the parameters during optimisation.

[0128] To improve calibration precision outliers may be excluded from the calibration. Outliers can e.g. be identified in the plot of the mathematical combination of image feature co-ordinates against the angle of rotation/the translation or by back projection of co-ordinates after an initial calibration.

[0129] 2% of the feature points deviating most from the back-projected 2D image feature curves may be excluded from the calibration or at least 3%, such as at least 5%, for example at least 10%, for example at least 12%, such as at least 15% for example at least 20, preferably at least 25%, for example at least 30%, more preferably at least 33% may be excluded to improve calibration precision.

[0130] In order to cover the whole circumference of the calibration object the discrete number of values for angle of rotation/translation may be at least 100, preferably at least 240, for example at least 500, such as at least 750, for example at least 1000, such as at least 1200, for example at least 1500, such as at least 1800, for example at least 2000, such as at least 2400, for example at least 3000, for example at least 3600, such as at least 4200. The higher the discrete number of values of angle of rotation/translation, the higher the calibration precision.

[0131] The highest calibration precision is obtained when using a rigid setup, which comprises mounting the calibration object onto mounting means.

[0132] 6. References

[0133] [1] TSai, R. Y., “A versatile Camera Calibration Technique for High-Accuracy 3D Machine Vision Metrology Using Off-the-Shelf TV Cameras and Lenses”, IEEE Journal of Robotics and Automation, pages 323-344, Vol. RA-3, No. 4, August 1987.

[0134] [2] Heikkilä, J, “Geometric Camera Calibration Using Circular Control Points”, IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 22, No. 10, pp. 1066-1077, October 2000 

1. A scanner for three-dimensional scanning of interior surfaces comprising at least one light source adapted to create and project structured light producing a pattern on the interior surface of an object, at least one camera, adapted to record 2-D images of the pattern, data processing means adapted to convert 2-D image information into 3-D real world co-ordinates, at least one position sensor adapted to provide the relative position and orientation of the scanner during successive scans, the point of emission of light as well as the point of accumulation of reflected light for the camera being located on a probe having an axis, the at least one light source and the at least one camera being adapted to perform a scan 360° around the axis, and the probe being adapted to be entered into a cavity.
 2. The scanner according to claim 1, wherein the probe is rigid.
 3. The scanner according to claim 1, wherein the probe is flexible.
 4. The scanner according to claim 1, wherein the probe has a diameter or cross section of less than 30 mm.
 5. The scanner according to claim 1, wherein the probe has a diameter or cross section of less than 20 mm, preferably less than 15 mm, more preferably less than 10 mm, such as less than 10 mm, for example less than 8 mm, such as less than 6 mm, for example less than 5 mm, such as less than 4 mm, for example less than 3 mm, such as less than 2 mm, such as less than 1 mm, for example less than 0.1 mm.
 6. The scanner according to claim 1, wherein the probe has a length of up to 500 mm, such as up to 300 mm, for example up to 200 mm, such as up to 100 mm, preferably up to 50 mm, more preferably up to 35 mm, such as up to 20 mm, for example up to 10 mm, such as up to 5 mm.
 7. The scanner according to any of the preceding claims, wherein the probe is made from a material selected from the group consisting of an alloy, aluminium, kevlar, a polymer, ceramics, and carbon.
 8. The scanner according to any of the preceding claims, wherein the probe is made from a material selected from the group consisting of polymers, such as plastic polymers, rubber, and silicone.
 9. The scanner according to any of the preceding claims, wherein the pattern of structured light comprises at least one ray of light forming at least one point on the surface.
 10. The scanner according to claim 9, wherein the pattern comprises at least 10 rays, such as at least 25 rays, for example at least 100 rays, such as at least 1000 rays, for example at least 10,000 rays, such as at least 100,000 rays, for example at least 1,000,000 rays.
 11. The scanner according to any of the preceding claims, wherein the at least one light source is adapted to create and project rectangular shaped rays forming a distorted checkerboard pattern on the interior surface.
 12. The scanner according to any of the preceding claims, wherein the pattern of structured light comprises at least one planes of light forming at least one contour on the surface
 13. The scanner according to any of the preceding claims, wherein the pattern of structured light comprises at least one cone of light.
 14. The scanner according to claim 1, wherein the at least one light source comprises a laser, variable output-powered laser, laser emitting diode (LED), a halogen spot or another spotlight, preferably being adapted to produce monochromatic and/or coherent and/or polarised light.
 15. The scanner according to claim 1, wherein the light source has a cross section perpendicular to the direction of emitted light of less than 5 mm, preferably less than 4 mm, for example less than 3 mm, such as less than 2 mm, for example less than 1 mm, such as less than 0.5 mm, for example less than 0.25 mm.
 16. The scanner according to claim 1, further comprising optics such as filters, lenses or prisms to create and/or focus the pattern of light on the surface of the object.
 17. The scanner according to claim 1, comprising at least 2 light sources, such as at least 3 light sources, for example at least 4 light sources.
 18. The scanner according to claim 17 comprising at least 5 light sources, such as at least 6 light sources, for example at least 7 light sources, such as at least 8 light sources, for example at least 10 light sources, such as at least 12 light sources, for example at least 16 light sources, such as at least 20 light sources.
 19. The scanner according to any of the preceding claims, whereby the light source intensity is varied depending on the surface and/or colour of the object to be scanned.
 20. The scanner according to claim 19, whereby the light source intensity is determined automatically using automatic light source intensity calibration.
 21. The scanner according to any of the preceding claims, wherein the at least one light source is arranged such that structured light is emitted in different directions covering 360° around the probe.
 22. The scanner according to any of the preceding claims, wherein the at least one camera comprises a sensor array.
 23. The scanner according to any of the preceding claims, wherein the at least one camera comprises a CCD.
 24. The scanner according to any of the preceding claims, wherein the at least one camera comprises a CMOS.
 25. The scanner according to any of the preceding claims, wherein the light detecting component of the camera has a cross section in a direction perpendicular to the direction of incident light of less than 10 mm, such as less than 9 mm, for example less than 8 mm, such as less than 7 mm, for example less than 6 mm, such as less than 5 mm, for example less than 4 mm, such as less than 3 mm, for example less than 1 mm, such as less than 0.5 mm, for example less than 0.25 mm, such as less than 0.1 mm, for example less than 0.01 mm.
 26. The scanner according to any of the preceding claims, wherein the camera comprises an array of at least 125*125 pixels, more preferably at least 250*250 pixels, more preferably more than 500*500 pixels, more preferably more than 1000*1000 pixels, such as more than 2000*2000 pixels, for example more than 4000*4000 pixels, such as more than 8000*8000 pixels, for example more than 10,000*10,000 pixels, such as more than 25,000*25,000 pixels, for example more than 50,000*50,000 pixels, such as more than 100,000*100,000 pixels, for example more than 250,000*250,000 pixels, such as more than 500,000*500,000 pixels, for example more than 1,000,000*1,000,000 pixels.
 27. The scanner according to claim 26, wherein the pixel size is the smallest available on the market, for example wherein a cross section of a pixel is less than 100 μm, such as less than 50 μm, for example less than 25 μm, such as less than 20 μm, for example less than 15 μm, such as less than 10 μm, for example less than 7.5 μm, such as less than 5 μm, for example less than 2.5 μm, such as less than 2 μm, for example less than 1.5 μm, such as less than 1 μm, for example less than 0.5μ, such as less than 0.25 μm, for example less than 0.1 μm, such as less than 0.01 μm.
 28. The scanner according to any of the preceding claims, wherein the at least one camera is colour sensitive.
 29. The scanner according to any of the preceding claims, further comprising a filter in the light path between the object surface and the camera being adapted to filter light from other light sources than the individual light sources of the scanner.
 30. The scanner according to claim 1, comprising at least 2 cameras, such as at least 3 cameras, for example at least 4 cameras.
 31. The scanner according to claim 30 comprising at least 5 cameras, such as at least 6 cameras, for example at least 7 cameras, such as at least 8 cameras, for example at least 10 cameras, such as at least 12 cameras, for example at least 16 cameras, such as at least 20 cameras.
 32. The scanner according to claim 30 or 31, wherein the cameras are arranged such that reflected light is recorded from different directions covering 360° around the probe.
 33. The scanner according to any of the preceding claims, wherein the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe are chosen to give an angle between incident light on the object and light reflected from the object of approximately 20-30°.
 34. The scanner according to any of the preceding claims, wherein the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe are chosen to give a scan of the surface lying ahead of the end of the probe.
 35. The scanner according to any of the preceding claims, wherein the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe are chosen to give a scan of the surface lying approximately around the end of the probe.
 36. The scanner according to any of the preceding claims, wherein the location of the point of emission of light and the point of recording reflected light as well as the angle of emission and recording with respect to the axis of the probe are chosen to give a scan of the surface lying behind the end of the probe.
 37. The scanner according to any of the preceding claims comprising a motor adapted to rotate the scanner around its axis.
 38. The scanner according to claim 37, wherein the motor is adapted to rotate the scanner 360°.
 39. The scanner according to any of the preceding claims, comprising a motor being adapted to translate the scanner along its axis.
 40. The scanner according to any of the preceding claims, comprising a motor being adapted to translate the scanner in space.
 41. The scanner according to any of the preceding claims, further comprising at least one mirror and/or prism to reflect light emitted from the light source.
 42. The scanner according to any of the preceding claims, further comprising at least one mirror and/or prism to direct light reflected from the interior surface to the camera.
 43. The scanner according to any of claims 41 to 42, further comprising a motor adapted to rotate at least one mirror and/or prism around the axis.
 44. The scanner according to any of claims 41 to 42, further comprising a motor adapted to tilt at least one mirror and/or prism.
 45. The scanner according to any of the preceding claims 41 to 44, comprising at least one cone-shaped mirror and/or prism.
 46. The scanner according to claim 45, wherein the cone shaped mirror and/or prism directs light from the at least one light source to the internal surface.
 47. The scanner according to claim 45, wherein the cone shaped mirror and/or prism directs light reflected from the internal surface to the camera.
 48. The scanner according to any of the preceding claims, wherein the at least one light source is located in a box attached to the probe, the at least one light guide being connected with the point of emission of light with a light guide.
 49. The scanner according to any of the preceding claims, wherein at least one light source is located near the point of emission of light.
 50. The scanner according to any of the preceding claims, wherein the at least one camera is located in a box attached to the probe, the at least one camera being connected with the point of recording of reflected light by a light guide.
 51. The scanner according to claim 50, where the light guide comprises fibre optics.
 52. The scanner according to claim 50, where the light guide comprises a lens system.
 53. The scanner according to any of the preceding claims, wherein a camera is located near the point of recording of reflected light.
 54. The scanner according to any of the preceding claims, wherein the position sensor comprises a mechanical position sensor.
 55. The scanner according to any of the preceding claims, wherein the position sensor comprises a sonic position sensor.
 56. The scanner according to any of the preceding claims, wherein the position sensor comprises an optical position sensor.
 57. The scanner according to any of the preceding claims, wherein the position sensor comprises a magnetic position sensor.
 58. The scanner according to any of the preceding claims 1 to 57, wherein the position sensor comprises a transmitter located on the object and a receiver being located on the scanner.
 59. The scanner according to any of the preceding claims, further comprising a collision detector adapted to measure the distance from the tip of the probe to the bottom of the interior surface.
 60. The scanner according to any of the preceding claims, further comprising a protector adapted to protect the surface and the scanner head in the case of collisions.
 61. The scanner according to any of the preceding claims, further comprising a window of transparent material adapted to protect the components against dirt.
 62. The scanner according to any of the preceding claims, further comprising a disposable cover.
 63. Use of a scanner according to any of claims 1 to 62 for scanning body cavities such as the internal surfaces of the ear, nose, mouth, teeth, stomach, lungs, alveoli, throat, rectum, vagina, veins, blood vessels, urinary tract.
 64. Use of a scanner according to any of claims 1 to 62 for industrial purposes such as for scanning internal surfaces of engines, fuel canals, bore, internal thread, pipes, tubes and containers.
 65. Use of a scanner according to any of claims 1 to 62 for archaeological purposes such as for scanning internal surfaces of jars, skulls and other artefacts.
 66. Use of a scanner according to any of claims 1 to 62 in industrial design.
 67. A method for scanning interior surfaces comprising the steps of i) entering a probe shaped scanner having an axis into a cavity, ii) creating and projecting structured light from a first point on the probe producing a pattern on an interior surface of an object, and at a second point of the probe, recording 2D images of the pattern reflected from the interior surface, thereby performing a scan 360° around the axis of the probe, iii) determining 2D co-ordinates of the images of the pattern, iv) determining the relative position and orientation of the scanner during successive scans with at least one position sensor, v) combining a series of images to obtain 3D real world co-ordinates of the interior surface.
 68. The method according to claim 67, comprising the use of a scanner according to any of claims 1 to
 62. 69. The method according to any of claims 67 to 68, further comprising calibration of the scanner i) scanning a three dimensional calibration object having at least one plane of symmetry and whereby at least part of at least one 3D object feature curve of each symmetric part is a continuous curve, ii) determining image feature co-ordinates being representations of at least one pair of 3D object feature curves for each of a discrete number of values of an angle of rotation and/or a translation, a pair consisting of one 3D object feature curve in each symmetric part of the calibration object, iii) changing the calibration parameters to fit the calibration object.
 70. The method according to claim 69, whereby a light pattern is projected onto the calibration object producing 2D image feature curves.
 71. The method according to claim 70, whereby the 2D image feature curves are determined using the Hough transformation.
 72. The method according to claim 69, whereby 2D image feature co-ordinates are found as the intersection between image feature curves such as, the intersection between two n^(th) order curves, as the intersection between two first order curves, as the intersection between two second order curves, as the intersection between two third order curves, as the intersection between a first order curve and a second order curve, as the intersection between a first order curve and a third order curve, or as the intersection between a second order curve and a third order curve.
 73. The method according to claim 69, further comprising plotting of a mathematical combination of at least one 2D image feature co-ordinate being representations of each pair of 3D object feature curves against the angle of rotation or translation of the calibration object.
 74. The method according to claim 73, further comprising determination of the mean plane of symmetry in the plot.
 75. The method according to claim 74, whereby the mean plane of symmetry is determined by calculating the mean angle of rotation and/or the mean translation for pairs of angle of rotation and/or translations having the same value in the mathematical combination.
 76. The method according to any of claims 74 to 75, whereby the determined mean plane of symmetry is used to calibrate the angle or rotation and/or translation.
 77. The method according to any of claims 74 to 75, whereby pairs of mean angle of rotation and/or mean translation are used to calibrate the light pattern displacement and/or light pattern angle.
 78. The method according to any of claims 74 to 75, whereby light pattern calibration comprises selecting symmetric points, plotting of the rotation angle and/or the translation for the first point against the difference in the rotation angle and/or the translation between the two symmetric point, deriving mathematical formula for the plotted lines and estimating the light pattern parameters.
 79. The method according to claim 69, whereby step iii) comprises determination of 2D light pattern coordinates of the 2D image feature curves corresponding to a discrete number of values of angle of rotation/translation.
 80. The method according to claim 79, whereby 2D co-ordinates of the 3D object feature curves are calculated from mathematical functions determining the 3D object feature curves for a discrete number of values of angle of rotation and/or translation.
 81. The method according to claim 69, whereby step iii) comprises comparison of pairs of 2D light pattern co-ordinates to calculated 2D co-ordinates.
 82. The method according to claim 69, whereby step iii) comprises using the Tsai algorithm and/or the Heikkilä algorithm, and/or direct linear transformation and/or direct non-linear matrix transformation and/or an optimisation procedure such as least squares means to minimise the error.
 83. The method according to claim 69, whereby outliers are excluded from step ii).
 84. The method according to claim 83, whereby outliers are identified by back projection of image feature co-ordinates and at least the 2% of the feature points deviating most from the back-projected 2D image feature curves are excluded from step iv), for example whereby the at least 3%, such as at least 5%, for example at least 10%, for example at least 12%, such as at least 15% for example at least 20, such as at least 25%, for example at least 30%, such as at least 33% are excluded.
 85. The method according to claim 80, whereby the discrete number of values for an angle of rotation and/or translation is at least 100, preferably at least 240, for example at least 500, such as at least 750, for example at least 1000, such as at least 1200, for example at least 1500, such as at least 1800, for example at least 2000, such as at least 2400, for example at least 3000, for example at least 3600, such as at least
 4200. 86. The method according to claim 69, whereby the light source intensity is varied depending on the surface and/or colour of the object to be scanned.
 87. The method according to claim 86, whereby the light source intensity is determined automatically using automatic light source intensity calibration.
 88. The method according to claim 69, whereby the calibration object is mounted on mounting means.
 89. A method for 3D modelling and production comprising obtaining 3D real world coordinates of an interior surface of a cavity provided using the method according to any of claims 67 to 69, and creating a piece adapted to fit into the cavity.
 90. The method according to claim 89, wherein production comprises milling, 3-dimensional printing, stereo lithography, selective laser sintering, laminated object modelling, inkjet modelling, fused deposition modelling, nano-printing.
 91. The method according to any of claims 89 to 90, wherein 3D modelling comprising computer assisted modelling of the scan data prior to production.
 92. The method according to any of the preceding claims 89 to 91, comprising scanning the interior surface of an ear canal and producing a hearing aid shell adapted to house a device.
 93. The method according to claim 92, whereby the ear and/or ear canal is scanned a number of times.
 94. The method according to any of claims 92 to 93, whereby the ear and/or ear canal is scanned a number of times under different conditions affecting the geometry of the ear and/or ear canal of the individual.
 95. The method according to any of claims 92 to 94, further comprising computer modelling of the device for the ear by adjusting the model for the dynamic changes in the geometry of the ear and/or ear canal using scan data from different scans.
 96. The method according to any of claims 92 to 95, whereby the device comprises a hearing aid.
 97. The method according to any of claims 92 to 95, whereby the device comprises a mobile phone.
 98. The method according to any of claims 92 to 95, whereby the device comprises a loud speaker.
 99. The method according to any of claims 92 to 95, whereby the device comprises communication devices.
 100. The method according to any of claims 92 to 95, whereby the device comprises a device capable of detecting vibrations in the skull and converting these into a transmittable signal.
 101. The method according to any of claims 92 to 95, whereby the device comprises a tinnitus masker or a tinnitus masking device. 